package com.newlink.building.mvp.presenter

import com.newlink.building.common_base.base.BasePresenter
import com.newlink.building.common_base.ext.ss
import com.newlink.building.mvp.contract.NL_LicenseContract
import com.newlink.building.mvp.model.NL_LicenseModel

/**
 * Created by xiaodong on 2025/2/20.
 */
class NL_LicensePresenter :
    BasePresenter<NL_LicenseContract.Model, NL_LicenseContract.View>(),
    NL_LicenseContract.Presenter {

    override fun createModel() = NL_LicenseModel()

    override fun getAgreement() {
        mModel?.getAgreement()?.ss(mModel, mView) {
            if (it?.data != null) {
                mView?.onGetAgreementSuccess(it.data)
            }
        }
    }
}
